1 00:00:00,080 --> 00:00:02,000 Now let's start making purchases. 2 00:00:02,000 --> 00:00:07,370 We need some sort of purchasing mechanism and I'm going to modify the shop that had the tools in it, 3 00:00:07,370 --> 00:00:08,660 but this time it's going to sell. 4 00:00:08,660 --> 00:00:09,650 It's going to sell parts. 5 00:00:09,650 --> 00:00:12,050 We'll get like a little builder man in there or something. 6 00:00:12,080 --> 00:00:15,830 Let's open our workspace, though, and clean this up a little bit. 7 00:00:15,830 --> 00:00:19,940 These lots aren't very good the way they are at, so we're going to go to lots. 8 00:00:19,940 --> 00:00:21,170 That's the lot collection. 9 00:00:21,170 --> 00:00:24,230 Open it up and we got this player lot. 10 00:00:24,770 --> 00:00:27,830 I think I'm going to make that brick, that anchor point transparent. 11 00:00:28,530 --> 00:00:29,400 Player lot. 12 00:00:31,110 --> 00:00:31,980 Anchor. 13 00:00:32,010 --> 00:00:33,030 There we go. 14 00:00:33,060 --> 00:00:35,460 Transparency one. 15 00:00:35,940 --> 00:00:36,210 All right. 16 00:00:36,210 --> 00:00:37,350 We don't need to see it. 17 00:00:37,350 --> 00:00:41,670 And then let me close that player a lot and get rid of the other two. 18 00:00:42,520 --> 00:00:42,600 All right. 19 00:00:43,350 --> 00:00:47,490 Let's go ahead and make some copies of these and put them the way we want them. 20 00:00:47,490 --> 00:00:51,750 I want to get that first copy over in this area that I cleared out. 21 00:00:51,750 --> 00:00:58,020 So I'm going to hit the player lot collisions are off, so we'll duplicate in place control D we got 22 00:00:58,020 --> 00:00:58,800 another one. 23 00:00:58,800 --> 00:01:00,780 Let's move that location. 24 00:01:00,780 --> 00:01:02,880 I'm not going to use the arrows though. 25 00:01:02,910 --> 00:01:13,080 I'm going to go down to origin for the player lot itself and I'm going to make this -100 on the X that's 26 00:01:13,080 --> 00:01:18,020 going to plop it over there, but the sign is facing the other way, no problem. 27 00:01:18,030 --> 00:01:24,030 Instead of orientation being 90 degrees, let's make it -90. 28 00:01:24,180 --> 00:01:27,000 Now it's facing they're facing each other. 29 00:01:28,070 --> 00:01:28,960 Pretty good. 30 00:01:28,970 --> 00:01:30,590 Let's make two copies. 31 00:01:30,890 --> 00:01:32,760 Let's get a copy of this lot. 32 00:01:32,780 --> 00:01:36,430 Control click and this lot by duplicating. 33 00:01:36,440 --> 00:01:41,530 So we're going to duplicate two of them, Control D and then we're going to rotate. 34 00:01:41,540 --> 00:01:45,170 I have my rotation on at 15 degree increments. 35 00:01:45,170 --> 00:01:50,570 The snaps go back to home, make sure you hit, rotate and I'm going to go out. 36 00:01:51,560 --> 00:01:54,200 1530. 37 00:01:55,190 --> 00:01:56,510 45. 38 00:01:56,540 --> 00:01:57,860 60. 39 00:01:57,890 --> 00:01:58,880 How's that? 40 00:01:58,910 --> 00:02:03,620 Do a control D and then let's rotate this. 41 00:02:03,620 --> 00:02:06,320 1545. 42 00:02:07,200 --> 00:02:07,620 What was that? 43 00:02:07,620 --> 00:02:09,210 15, 30? 44 00:02:09,210 --> 00:02:11,800 45, 60. 45 00:02:11,820 --> 00:02:14,490 I don't know if I said it right, but I think it worked out. 46 00:02:15,880 --> 00:02:16,840 That's pretty good. 47 00:02:17,660 --> 00:02:26,840 Now go to the editor, hit edit, paint ground and I'm going to remove the grass, but I'm going to 48 00:02:26,840 --> 00:02:29,090 pause the video so you don't have to watch me do that. 49 00:02:29,090 --> 00:02:32,180 I'm going to do it on all of the lots that have grass. 50 00:02:33,470 --> 00:02:33,740 All right. 51 00:02:33,740 --> 00:02:34,340 So there we go. 52 00:02:34,340 --> 00:02:37,430 We got the grass removed from our lots. 53 00:02:37,460 --> 00:02:43,600 We'll go ahead and close the terrain editor and now we want to import the shop. 54 00:02:43,610 --> 00:02:51,650 I actually put the URL in a file called URLs in the description for the shop that we created earlier 55 00:02:51,650 --> 00:02:56,660 in the course, but I wanted to make it so that everybody had the exact same copy. 56 00:02:56,660 --> 00:02:58,280 I put it on the marketplace. 57 00:02:58,280 --> 00:03:02,180 This is my main, this is my alt, the Simtek nitro one is my alt. 58 00:03:02,180 --> 00:03:06,920 So I put it on my main because he's verified and I can do like 100 uploads a month. 59 00:03:06,920 --> 00:03:11,900 So let's go ahead and get that model and I'll show you how to modify it. 60 00:03:12,230 --> 00:03:20,040 Let's go back to our Roblox studio and we'll do Toolbox inventory free my models, and now we can get 61 00:03:20,040 --> 00:03:23,220 the shot if I drag that in there. 62 00:03:23,310 --> 00:03:24,000 Oh, look at that. 63 00:03:24,000 --> 00:03:25,080 That's pretty good. 64 00:03:25,290 --> 00:03:29,310 I'm going to put it close to the spawn location, maybe in between the houses. 65 00:03:29,790 --> 00:03:30,240 Yep. 66 00:03:30,300 --> 00:03:31,080 11 scripts. 67 00:03:31,080 --> 00:03:32,070 We were busy. 68 00:03:32,240 --> 00:03:32,430 Hit. 69 00:03:32,430 --> 00:03:33,300 Okay. 70 00:03:34,180 --> 00:03:35,530 Close the tool box. 71 00:03:35,530 --> 00:03:41,020 I'm going to rotate it so that it's looking at the spawn location for when you enter the game. 72 00:03:42,140 --> 00:03:44,070 Might have to change those degrees. 73 00:03:46,060 --> 00:03:51,580 All right, Now we have the pistol and the lemon and the and the slingshot floating around. 74 00:03:51,610 --> 00:03:54,790 That is because let's open shop. 75 00:03:55,330 --> 00:03:58,210 I put a folder in here saying, move these. 76 00:03:58,240 --> 00:03:59,050 And I have a read. 77 00:03:59,050 --> 00:03:59,470 Me too. 78 00:03:59,500 --> 00:04:05,140 So if you want to use the shop as is the way we did it earlier, the read me will set it up Let's go 79 00:04:05,140 --> 00:04:11,050 to move these and we're actually going to get rid of those items because we're not going to sell those 80 00:04:11,050 --> 00:04:11,890 in this shop. 81 00:04:11,890 --> 00:04:16,930 This is going to be house supply shop, right where you buy a house or buy a fence. 82 00:04:17,560 --> 00:04:17,800 All right. 83 00:04:17,830 --> 00:04:19,810 Now our screen guy. 84 00:04:20,340 --> 00:04:26,250 Let's drag that down to starter gooey. 85 00:04:26,460 --> 00:04:30,630 And if you'll recall, let's take a look at that shot frame. 86 00:04:31,450 --> 00:04:33,970 And we'll go ahead and do Visible. 87 00:04:36,070 --> 00:04:37,450 That's our shot frame. 88 00:04:37,480 --> 00:04:38,650 Not bad. 89 00:04:39,250 --> 00:04:39,550 All right. 90 00:04:39,550 --> 00:04:45,210 And we're going to go back up here right where it says move these simple leaderboard. 91 00:04:45,220 --> 00:04:46,330 We don't need it. 92 00:04:46,330 --> 00:04:52,090 So that is if you need a leaderboard for points for purchasing stuff, let's go ahead and delete that 93 00:04:52,090 --> 00:04:53,630 and then we'll get the shop. 94 00:04:54,340 --> 00:04:57,370 This is going to go down into replicated storage. 95 00:04:57,850 --> 00:04:59,320 Replicated storage. 96 00:05:00,690 --> 00:05:01,620 Did I get it? 97 00:05:01,620 --> 00:05:03,120 Yeah, right there shop. 98 00:05:03,450 --> 00:05:05,550 Because we got the beam to. 99 00:05:06,380 --> 00:05:11,300 Now for this shop, I'm going to make a little bit of a modification on the guy. 100 00:05:11,330 --> 00:05:13,130 So let's go back to Shop Frame. 101 00:05:13,130 --> 00:05:14,990 Let's make that visible. 102 00:05:15,170 --> 00:05:18,170 And we have three things here. 103 00:05:18,170 --> 00:05:24,020 I'm only going to sell two, I'm going to open up the items frame and then I'm going to get rid of one 104 00:05:24,020 --> 00:05:26,900 of these buttons right over here on the scroll pane. 105 00:05:27,110 --> 00:05:28,460 Let's do delete. 106 00:05:28,850 --> 00:05:38,060 I just have my cabin and my fence, so I need to update the information in my item one button. 107 00:05:38,090 --> 00:05:42,380 Now we have our image ID if we go to home. 108 00:05:42,770 --> 00:05:47,780 Two videos ago, I believe it was We have our toolbox. 109 00:05:49,530 --> 00:05:56,190 And then my image is we have our our cabin image and our fence image. 110 00:05:56,640 --> 00:05:58,850 Let's make the first one the cabin. 111 00:05:58,860 --> 00:06:07,980 I'm going to right click copy asset ID, I'm going to go to my image ID and keep this. 112 00:06:07,980 --> 00:06:10,110 Let me stretch this out a little bit. 113 00:06:10,200 --> 00:06:15,660 Keep this Roblox asset ID, colon slash slash. 114 00:06:15,840 --> 00:06:16,440 Right. 115 00:06:16,440 --> 00:06:19,470 Because it does an auto fix them because this isn't a texture. 116 00:06:19,470 --> 00:06:24,060 So we don't have the we don't have the help of Roblox trying to figure out what we want. 117 00:06:24,060 --> 00:06:32,190 So just put the ID right there and I'm going to do for since we have this open, let's get the fence 118 00:06:32,190 --> 00:06:33,240 for this one. 119 00:06:35,410 --> 00:06:36,460 Copied. 120 00:06:37,860 --> 00:06:41,600 Go down here to the to the second item and put our fence. 121 00:06:41,610 --> 00:06:47,760 We're going to check these two control V, So that's what, 7 to 9. 122 00:06:48,420 --> 00:06:48,810 Okay. 123 00:06:48,840 --> 00:06:49,590 Four nine, eight. 124 00:06:49,590 --> 00:06:50,580 So we have different ones. 125 00:06:50,580 --> 00:06:51,450 That's good. 126 00:06:51,570 --> 00:06:51,900 All right. 127 00:06:51,900 --> 00:06:53,940 So now on the top one. 128 00:06:54,560 --> 00:06:55,730 Changing the names. 129 00:06:55,730 --> 00:06:56,810 Easy enough, Right. 130 00:06:56,840 --> 00:06:57,890 Cabin. 131 00:06:57,920 --> 00:07:03,310 You're going to need to spell it the same as it is in server storage, though, right? 132 00:07:03,320 --> 00:07:05,150 And then let's go down to our price. 133 00:07:05,150 --> 00:07:08,750 We might as well do that right here and make whatever price you want. 134 00:07:08,750 --> 00:07:09,110 Right. 135 00:07:09,110 --> 00:07:11,120 Maybe 3000 points. 136 00:07:11,120 --> 00:07:13,040 30,000 points, whatever. 137 00:07:13,940 --> 00:07:14,180 All right. 138 00:07:14,180 --> 00:07:16,940 We got our image ID for the second item. 139 00:07:16,940 --> 00:07:19,100 And this is the fence, right? 140 00:07:19,400 --> 00:07:19,760 You know what? 141 00:07:19,760 --> 00:07:25,340 I'll put URLs to these to these images in here in case you didn't get them a couple videos ago. 142 00:07:25,340 --> 00:07:29,900 It'll be in that file URLs on the resources in this lecture. 143 00:07:29,900 --> 00:07:32,900 So now we're going to go to item name. 144 00:07:33,790 --> 00:07:37,660 This has to be called the same thing as it is in server storage. 145 00:07:37,810 --> 00:07:42,550 We just call it fence and then we'll do the price of the fence. 146 00:07:42,730 --> 00:07:44,680 I might keep it 2000, Right. 147 00:07:45,400 --> 00:07:45,700 All right. 148 00:07:45,730 --> 00:07:48,450 Now let me get rid of that. 149 00:07:48,460 --> 00:07:51,640 I need to have a property type. 150 00:07:51,790 --> 00:07:58,840 I may want to have several different options of house, so I'm going to go to my to buy frame. 151 00:07:58,840 --> 00:08:00,550 I'm going to open that up. 152 00:08:01,000 --> 00:08:02,860 And I have my name label. 153 00:08:02,860 --> 00:08:04,870 I have my price label. 154 00:08:05,290 --> 00:08:11,010 I know we don't have these tagged with what they are in the UI, but you can always do that. 155 00:08:11,020 --> 00:08:17,200 Let's go ahead and shrink down our price label a little bit, make it to whatever you want, hitting 156 00:08:17,200 --> 00:08:19,450 control D to duplicate it. 157 00:08:19,450 --> 00:08:22,300 And this is going to be my type, right? 158 00:08:22,300 --> 00:08:28,300 It'll be like house or fence or chair or bed or something like that. 159 00:08:28,300 --> 00:08:34,820 That way we have a key for our key value pairs which says, Hey, this is going to be a house, this 160 00:08:34,820 --> 00:08:36,080 is going to be, you know what I mean? 161 00:08:36,080 --> 00:08:38,540 Let's get our price label here. 162 00:08:39,110 --> 00:08:40,640 Let's call this. 163 00:08:43,070 --> 00:08:51,780 Prop type and I'm going to add to our items a string value. 164 00:08:51,800 --> 00:08:53,690 Here's item one. 165 00:08:54,200 --> 00:08:57,320 Hit an S string value. 166 00:08:58,300 --> 00:09:01,030 Let's call this prop type. 167 00:09:04,200 --> 00:09:06,960 This will be of type house. 168 00:09:09,360 --> 00:09:11,370 And we'll go ahead and duplicate it. 169 00:09:11,370 --> 00:09:12,240 Control D. 170 00:09:13,240 --> 00:09:16,810 Move that down to item two under that prop type. 171 00:09:16,960 --> 00:09:22,750 This is going to be fence and you can make a more general if you want, like maybe perimeter or something. 172 00:09:22,750 --> 00:09:25,990 You might want to have like razor barbed stuff like that. 173 00:09:25,990 --> 00:09:28,000 It's it could be a zombie game. 174 00:09:28,390 --> 00:09:34,990 And what we'll do is when you select that, we're going to get the property type to have the price here 175 00:09:34,990 --> 00:09:37,960 and we'll have the name and the image. 176 00:09:39,000 --> 00:09:39,310 All right. 177 00:09:39,310 --> 00:09:44,440 So now the purchasing isn't going to work yet, but let's go ahead and play it, see what we got for 178 00:09:44,440 --> 00:09:47,200 the visual representation of the shop. 179 00:09:47,200 --> 00:09:49,780 And we're going to have to. 180 00:09:51,280 --> 00:09:53,440 Get our output window. 181 00:09:55,080 --> 00:09:56,560 Address any errors. 182 00:09:56,580 --> 00:09:58,530 We have more code changes. 183 00:09:58,860 --> 00:09:59,670 Click. 184 00:10:01,250 --> 00:10:04,060 Cabin and we got to show our price type. 185 00:10:04,060 --> 00:10:04,550 But that's okay. 186 00:10:04,550 --> 00:10:05,990 We're going to do that with a code. 187 00:10:06,020 --> 00:10:07,070 We don't have any errors. 188 00:10:07,070 --> 00:10:08,660 And then we have our fence.